﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hyt.Core.Data
{
    public class CommonPageQueryModel : QueryModel
    {
        private int _pagesize = 0;
        public int PageSize
        {
            set { if (value >= 0)_pagesize = value; }
            get { return _pagesize; }
        }

        private int _pageindex = 1;
        public int PageIndex
        {
            set { if (value >= 1)_pageindex = value; }
            get { return _pageindex; }
        }

        private OrderType _ordertype = OrderType.DESC;
        public OrderType OrderType
        {
            get{return _ordertype;}
            set { _ordertype = value; }
        }

        public string OrderBy { get; set; }
    }
}
